package com.t249.bdqn.renting.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

@Data
@Component
@TableName(value = "ret_collection")
public class RetCollection {

    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableField("id")
    private Integer id;

    //用户id
    @TableField("user_Id")
    private String userId;

    //房源id
    @TableField("rental_Id")
    private String rentalId;

    //收藏状态
    @TableField("ret_state")
    private String retState;
}
